<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:composition template="/pages/template/admin_main.xhtml">
	
		<ui:define name="title">
		    تكوين - الأدمن
		</ui:define>
		
		<div class="content">
			<ui:define name="content">
				<h:form id="f1" dir="rtl" enctype="multipart/form-data;charset=UTF-8">
					
					<p:growl id="messagesGrowl" showDetail="true"/>
					<p:messages id="messages" />
					
					<p:outputLabel id="ol1" value="العنوان : " for="it1"/>
					<p:inputText id="it1" value="#{pagesBean.page.title}" 
						style="width:300px;text-align:right;height:inherit;"  
						required="true" requiredMessage="الرجاء ادخال العنوان"  />
					<br/>
					
					<p:editor id="editor" value="#{pagesBean.page.body}" 
						height="250" width="750" 
						required="true" requiredMessage="الرجاء ادخال الموضوع"/>
					
					<br/>
						
					<p:commandButton id="cb1" action="#{pagesBean.createPage}" value="اضافة الصفحة" ajax="false" />
					
				</h:form>
			</ui:define>
		</div>
	</ui:composition>
</html>